package com.wkbb.sports.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wkbb.common.handler.JsonUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 元宇宙身份证
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MetaverseID implements Serializable {
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty("头像")
    private String headImg;
    @ApiModelProperty("形象")
    private String avatar;
    @ApiModelProperty("唯一码")
    private String uniqueId;
    @ApiModelProperty("名称")
    private String nickName;
    @ApiModelProperty("性别")
    private String sex;
    @ApiModelProperty("出生地")
    private String birthplace;
    @ApiModelProperty("出生日")
    private Date birthday;
    @ApiModelProperty("创建时间")
    private Date createTime;

    public static void main(String[] args) {
        MetaverseID metaverseID = new MetaverseID();
        metaverseID.setUserId(1266888L);
        metaverseID.setHeadImg("https://qiniu.righttimeedu.com/avatar/teacher_male.png");
        metaverseID.setAvatar("https://qiniu.righttimeedu.com/avatar/teacher_male.png");
        metaverseID.setNickName("张三");
        metaverseID.setSex("女");
        metaverseID.setBirthplace("天河元宇宙");
        metaverseID.setBirthday(new Date());
        System.out.println(JsonUtil.objectToJson(metaverseID));
    }
}
